﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReleaseMangementControl.ascx.cs" Inherits="SimplePMT.Control.ReleaseMangementControl" %>
<form name="releaseForm">
<table width="100%" cellpadding=3>
    <tr>
        <td style="white-space:nowrap;color:#ffffff" bgcolor="#869AAE">Release Management:</td>
    </tr>
    <tr>
        <td style="border:1px solid #6893cf;" bgcolor="#ffffff" valign=top>
            <table width="100%" align=center>
                <tr>
                    <td align=right width=30%><b>Project:</b>&nbsp;</td>
                    <td><%= FormElement.Select(200, "TaskContainerID", 0, taskContainerList, " OnChange=\"GetContainerRelease(this.options[this.options.selectedIndex].value);\"", true)%></td>
                </tr>
                <tr id="releaseSelect" style="display:none">
                    <td align=right width=30%><b>Release:</b>&nbsp;</td>
                    <td id="releaseSelectList"></td>
                </tr>
            </table>
            <p>
            <div id="newReleaseForm" style="display:none">
                <table width="100%" align=center>
                    <tr>
                        <td align=right width=30%><b>Release Cutoff:</b>&nbsp;</td>
                        <td><%= CalendarInput.Calendar("ReleaseCutoffDate", DateTime.Now)%></td>
                    </tr>
                    <tr>
                        <td align=right><b>Major Version:</b>&nbsp;</td>
                        <td><input type="text" size="4" name="Major" id="Major" value="<%= major %>" /></td>
                    </tr>
                    <tr>
                        <td align=right><b>Minor Version:</b>&nbsp;</td>
                        <td><input type="text" size="4" name="Minor" id="Minor" value="<%= minor %>" /></td>
                    </tr>
                    <tr>
                        <td align=right><b>Build Number:</b>&nbsp;</td>
                        <td><input type="text" size="4" name="Build" id="Build" value="<%= build %>" /></td>
                    </tr>
                    <tr>
                        <td align=right valign=top><b>Release Notes:</b>&nbsp;</td>
                        <td><textarea cols=40 rows=4 id="Notes" name="Notes"></textarea></td>
                    </tr>
                    <tr>
                        <td align=right valign=top></td>
                        <td>
                        <button type="button" id="cancel" name="cancel" onclick="top.win.close();">Cancel</button>&nbsp;&nbsp;&nbsp;
                        <button type="button" id="cancel" name="cancel" onclick="createRelease();">Create New Release</button>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="editReleaseForm" style="display:none">
                <table width="100%" align=center>
                    <tr>
                        <td align=right width=30%><b>Release Cutoff:</b>&nbsp;</td>
                        <td><%= CalendarInput.Calendar("EditReleaseCutoffDate")%></td>
                    </tr>
                    <tr>
                        <td align=right><b>Major Version:</b>&nbsp;</td>
                        <td><input type="text" size="4" name="EditMajor" id="EditMajor" value="" /></td>
                    </tr>
                    <tr>
                        <td align=right><b>Minor Version:</b>&nbsp;</td>
                        <td><input type="text" size="4" name="EditMinor" id="EditMinor" value="" /></td>
                    </tr>
                    <tr>
                        <td align=right><b>Build Number:</b>&nbsp;</td>
                        <td><input type="text" size="4" name="EditBuild" id="EditBuild" value="" /></td>
                    </tr>
                    <tr>
                        <td align=right><b>Revision Number:</b>&nbsp;</td>
                        <td><input type="text" size="4" name="EditRevision" id="EditRevision" value="" /></td>
                    </tr>
                    <tr>
                        <td align=right valign=top><b>Release Notes:</b>&nbsp;</td>
                        <td><textarea cols=40 rows=6 id="EditNotes" name="EditNotes"></textarea></td>
                    </tr>
                    <tr>
                        <td align=right width=30%><b>Date Released:</b>&nbsp;</td>
                        <td><%= CalendarInput.Calendar("EditDateReleased", DateTime.Now) %></td>
                    </tr>
                    <tr>
                        <td align=right valign=top></td>
                        <td>
                        <button type="button" id="cancel" name="cancel" onclick="top.win.close();">Cancel</button>&nbsp;&nbsp;&nbsp;
                        <button type="button" id="save" name="save" onclick="saveRelease();">Save Changes</button>
                        </td>
                    </tr>
                </table>
            </div>
                
        </td>
    </tr>
</table>
</form>